package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class TenderFileClariModi {

    public static String tenderFileClariModi ="<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            " <tenderFileClariModi> \n" +
            "    <tenderProjectCode>{0}</tenderProjectCode>\n" +
            "    <bidSectionCode>{1}</bidSectionCode>\n" +
            "    <unifiedDealCodes>{2}</unifiedDealCodes>\n" +
            "    <docNo>{3}</docNo>\n" +
            "    <bidQualfication>{4}</bidQualfication>\n" +
            "    <bidDocReferEndTime>{5}</bidDocReferEndTime>\n" +
            "    <validPeriod>{6}</validPeriod>\n" +
            "    <bidDocReferMethod>{7}</bidDocReferMethod>\n" +
            "    <marginPayType>{8}</marginPayType>\n" +
            "    <marginAmount>{9}</marginAmount>\n" +
            "    <margiCurrency>{10}</margiCurrency>\n" +
            "    <marginAmountUnit>{11}</marginAmountUnit>\n" +
            "    <controlPrice>{12}</controlPrice>\n" +
            "    <controlPriceCurrency>{13}</controlPriceCurrency>\n" +
            "    <controlPriceUnit>{14}</controlPriceUnit>\n" +
            "    <evaluatingMethod>{15}</evaluatingMethod>\n" +
            "    <bidOpenTime>{16}</bidOpenTime>\n" +
            "    <bidOpenPlace>{17}</bidOpenPlace>\n" +
            "    <bidOpenType>{18}</bidOpenType>\n" +
            "    <qualType>{19}</qualType>\n" +
            "    <clarifyTime>{20}</clarifyTime>\n" +
            "    <isPostPone>{21}</isPostPone>\n" +
            "    <postOpenTime>{22}</postOpenTime>\n" +
            "    <postOpenAddress>{23}</postOpenAddress>\n" +
            "    <clarifyContent>{24}</clarifyContent>\n" +
            "    <submitTime>{25}</submitTime>\n" +
            "    <attachmentSetCode>{26}</attachmentSetCode>\n" +
            "    <platFormCode>{27}</platFormCode>\n" +
            "    <pubServicePlatCode>{28}</pubServicePlatCode>\n" +
            "    <dataTimeStamp>{29}</dataTimeStamp>\n" +
            "</tenderFileClariModi>";

    public static void setTenderFileClariModi(String tenderFileClariModi,String s0,String s1,String s2,String s3,String s4,String s5,String s6,String s7,String s8,String s9,String s10
            ,String s11,String s12,String s13,String s14,String s15,String s16,String s17,String s18,String s19,String s20
            ,String s21,String s22,String s23,String s24,String s25,String s26,String s27,String s28,String s29) {
        TenderFileClariModi.tenderFileClariModi = MessageFormat.format(tenderFileClariModi,s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,
                s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25,s26,s27,s28,s29);

    }

    public static void setTenderFileClariModi(){
        setTenderFileClariModi(tenderFileClariModi, ParameterUtils.get("tenderProjectCode"),
                                                    ParameterUtils.get("bidSectionCode"),
                                                    ParameterUtils.get("unifiedDealCodes"),
                                                    ParameterUtils.get("docNo"),
                                                    ParameterUtils.get("bidQualfication"),
                                                    ParameterUtils.get("bidDocReferEndTime"),
                                                    ParameterUtils.get("validPeriod"),
                                                    ParameterUtils.get("bidDocReferMethod"),
                                                    ParameterUtils.get("marginPayType"),
                                                    ParameterUtils.get("marginAmount"),
                                                    ParameterUtils.get("margiCurrency"),
                                                    ParameterUtils.get("marginAmountUnit"),
                                                    ParameterUtils.get("controlPrice"),
                                                    ParameterUtils.get("controlPriceCurrency"),
                                                    ParameterUtils.get("controlPriceUnit"),
                                                    ParameterUtils.get("evaluatingMethod"),
                                                    ParameterUtils.get("bidOpenTime"),
                                                    ParameterUtils.get("bidOpenPlace"),
                                                    ParameterUtils.get("bidOpenType"),
                                                    ParameterUtils.get("qualType"),
                                                    ParameterUtils.get("clarifyTime"),
                                                    ParameterUtils.get("isPostPone"),
                                                    ParameterUtils.get("postOpenTime"),
                                                    ParameterUtils.get("postOpenAddress"),
                                                    ParameterUtils.get("clarifyContent"),
                                                    ParameterUtils.get("submitTime"),
                                                    ParameterUtils.get("attachmentSetCode"),
                                                    ParameterUtils.get("platFormCode"),
                                                    ParameterUtils.get("pubServicePlatCode"),
                                                    ParameterUtils.get("dataTimeStamp")
                );
    }
    public static void main(String[] args) {
       setTenderFileClariModi();
        System.out.println(tenderFileClariModi);
    }
}
